/**
 *    This file is part of "Liberty Gaming NQ Stats Analyzer".
 *
 *    "Liberty Gaming NQ Stats Analyzer" is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    "Liberty Gaming NQ Stats Analyzer" is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

var openedAliases='';

function showAliases(key) {
  if (openedAliases!='') {
    hideAliases(openedAliases);
  }
  openedAliases=key;
  $('player_aka_list_show_'+key).style.display='none';
  $('player_aka_list_hide_'+key).style.display='';
  $('player_aka_list_'+key).style.display='';
}

function hideAliases(key) {
  if (openedAliases!='' && openedAliases!=key) {
    hideAliases(openedAliases);
    openedAliases='';
  }
  $('player_aka_list_show_'+key).style.display='';
  $('player_aka_list_hide_'+key).style.display='none';
  $('player_aka_list_'+key).style.display='none';
}
